package cn.tedu.antconlonysever.contract.service;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.param.CustomerAddNewParam;
import cn.tedu.antconlonysever.contract.pojo.param.CustomerUpdateParam;
import cn.tedu.antconlonysever.contract.pojo.vo.CustomerListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.CustomerStandardVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public interface ICustomerService {
    void addNew(CustomerAddNewParam customerAddNewParam);
    void delete(Long id);
    void updateInfoById(Long id, CustomerUpdateParam customerUpdateParam);
    CustomerStandardVO getStandardById(Long id);
    PageData<CustomerListVO> list(Integer pageNum);
    PageData<CustomerListVO> list(Integer pageNum,Integer pageSize);
}
